package thread;



public class ThreadB extends  Thread {
    private MyObject object;

    public ThreadB(MyObject object) {
        this.object = object;
    }

    @Override
    public void run() {
        object.method2();
        object.method3("b");
        //object.method();

    }
}
